package huanzhao.erp.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

@TableName(value = "global_setting")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GlobalSetting implements Serializable {
    @TableId(value = "id")
    private Long id;
    /**
     * 财务id
     */
    @TableField(value = "financer_id")
    private Long financerId;

    /**
     * 业务经理id
     */
    @TableField(value = "manager_id")
    private Long managerId;

    /**
     * 维修组长id
     */
    @TableField(value = "repair_leader_id")
    private Long repairLeaderId;

    /**
     * 采购异常处理人id
     */
    @TableField(value = "purchase_handler_id")
    private Long purchaseHandlerId;

    /**
     * 库房异常处理人id
     */
    @TableField(value = "warehouse_handler_id")
    private Long warehouseHandlerId;

    /**
     * 接收时限，单位：秒
     */
    @TableField(value = "`limit`")
    private Long limit;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}